window.addEventListener("load",function(){
	
	var aaa = document.querySelector(".item1");
	var bbb = document.querySelector(".active2");
	var ccc =document.querySelector(".xuanxiangka_b .asd");
	var ddd = document.querySelector(".xuanxiangka_b .zxc");
	
	aaa.onclick = function(){		
		aaa.style.background = "#02684F";
		aaa.style.color = "#FFFFFF";
		aaa.style.border =  "5px solid #02684f";
		bbb.style.background= "#FFFFFF";
		bbb.style.color = "#02684F";
		bbb.style.border=  "5px solid #02684f";
		ccc.style.display = "block";
		ddd.style.display = "none";
	}
	bbb.onclick = function(){
		aaa.style.background = "#FFFFFF";
		aaa.style.color = "#02684F";
		aaa.style.border = "5px solid #02684F";
		bbb.style.background= "#02684F";
		bbb.style.color = "#FFFFFF";
		bbb.style.border = "5px solid #02684f";
		ddd.style.display = "block";
		ccc.style.display = "none";
	}
	
	//轮播图
	var test = new Swiper('.hengfulunbo',{
		loop: true, 
		autoplay: true, 
		pagination: { 
		    el: '.hengfulunbo .swiper-pagination',
			clickable: true,
		},
		navigation: {
			nextEl: '.hengfulunbo .swiper-button-next',
			prevEl: '.hengfulunbo .swiper-button-prev',
		},
	})
	
	
	
})